package Test2;

public class Test {
    public static void main(String[] args) {
        Animal animal=new Rabbit("小小","白色","哺乳类");
        animal.call();
        animal.eat();
        Swim swim=new FrogSwim();
        animal=new Frog("达","绿色","非哺乳类",swim);
        animal.call();
        animal.eat();
        swim.swim();
    }
}
